package com.ocom.payhandle.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.card.EntityXfRecordProcess;
import com.ocom.common.entity.card.EntityXfRecordProcessExxx;
import com.ocom.common.entity.card.EntityXfUserParamConfig;

import java.util.Date;
import java.util.List;

public interface XfUserparamConfigService extends IService<EntityXfUserParamConfig> {

    Integer selectLimit(Long companyId, Long pId, Integer accountType,Integer consType ,Date consDate
    ,Integer consMeal,Integer realAmount,boolean bujiao);

    //计算优惠限制
    Integer getRestrict(Long companyId, Long pId, Integer accountType, Integer consType , Date consDate
            , Integer consMeal, Integer discount, EntityXfRecordProcess entityXfRecordProcess, List<EntityXfRecordProcessExxx> processExxxList);

    Integer ifLimit(Long companyId, Integer accountType,Integer priority);
}
